Skip to main content
POST
Generate an image with FLUX1.1 [pro]

Authorizations

x-key
string
header
required

Body

application/json
prompt
string | null
default:""

Text prompt for image generation.

Example:

"ein fantastisches bild"

image_prompt
string | null

Optional base64 encoded image to use with Flux Redux.

width
integer
default:1024

Width of the generated image in pixels. Must be a multiple of 32.

Required range: 256 <= x <= 1440Must be a multiple of 32
height
integer
default:768

Height of the generated image in pixels. Must be a multiple of 32.

Required range: 256 <= x <= 1440Must be a multiple of 32
prompt_upsampling
boolean
default:false

Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.

seed
integer | null

Optional seed for reproducibility.

Example:

42

safety_tolerance
integer
default:2

Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.

Required range: 0 <= x <= 6
Example:

2

output_format
enum<string> | null
default:jpeg

Output format for the generated image. Can be 'jpeg', 'png', or 'webp'.

Available options:
jpeg,
png,
webp
webhook_url
string<uri> | null

URL to receive webhook notifications

Required string length: 1 - 2083
webhook_secret
string | null

Optional secret for webhook signature verification

Response

Successful Response

id
string
required
polling_url
string
required
cost
number | null

Cost in credits for this request

input_mp
number | null

Input megapixels (2 decimal places)

output_mp
number | null

Output megapixels (2 decimal places)